get into (someone's) good books

Translations
se mettre dans les bonnes grâces de quelqu'un
Definitions
To do something that makes someone pleased with you or causes them to have a favorable opinion of you, often in order to gain their approval or advantage.